﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace N6SCRM.APP.Controls
{
    /// <summary>
    /// Interaction logic for Dashboard.xaml
    /// </summary>
    public partial class Dashboard : UserControl
    {
        public Dashboard()
        {
            InitializeComponent();
        }

        public UIElement GeMainUserButton()
        {
            UIElement retVal = null;
            try
            {

        //<Button Name="btnDashboard" VerticalAlignment="Top" HorizontalAlignment="Left" Background="LightGray" Height="65" Width="65" Margin="5,5,5,5" ToolTip="Dashboard" Tag="Dashboard" Visibility="Collapsed">
        //    <StackPanel Orientation="Vertical" Margin="0">
        //        <Image Source="../images/information.png" Width="32" Height="32" VerticalAlignment="Center" HorizontalAlignment="Center"/>
        //        <TextBlock FontSize="14" FontFamily="Segoe UI">Dashboard</TextBlock>
        //    </StackPanel>
        //</Button>


                Button tempBtn = new Button();
                //tempBtn.VerticalAlignment = System.Windows.VerticalAlignment.Top;
                //tempBtn.HorizontalAlignment = System.Windows.HorizontalAlignment.Left;
                //tempBtn.Background. = Colors.LightGray;

                //retVal = FindName("btnDashboard") as Button;
                //Button tempBtn = FindName("btnDashboard") as Button;
                tempBtn.Content = "Dashboard";
                retVal = tempBtn;
            }
            catch (Exception eX)
            {
            }
            finally
            {

            }
            return retVal;
        }

    }
}
